<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>生成一个签名</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="oauth.fetch.html">OAuth::fetch</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="oauth.getaccesstoken.html">OAuth::getAccessToken</a></div>
 <div class="up"><a href="class.oauth.html">OAuth</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="oauth.generatesignature" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">OAuth::generateSignature</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">OAuth::generateSignature</span> &mdash; <span class="dc-title">生成一个签名</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-oauth.generatesignature-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><strong>OAuth::generateSignature</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$http_method</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$url</code></span>
   [, <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$extra_parameters</code></span>
  ] )</div>

  <p class="para rdfs-comment">
   生成一个基于最终 HTTP 方法、URL 和 一个字符串/数组参数的签名。
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-oauth.generatesignature-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">http_method</code></em></dt>

    <dd>

     <p class="para">
      用来请求的 HTTP 方法
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">url</code></em></dt>

    <dd>

     <p class="para">
      用来请求的 URL
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">extra_parameters</code></em></dt>

    <dd>

     <p class="para">
      字符串或数组的附加参数
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-oauth.generatesignature-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   一个包含签名的字符串  或者在失败时返回 <strong><code>FALSE</code></strong>
  </p>
 </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="oauth.fetch.html">OAuth::fetch</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="oauth.getaccesstoken.html">OAuth::getAccessToken</a></div>
 <div class="up"><a href="class.oauth.html">OAuth</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
